package com.health.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;

import com.health.R;


/**
 * 新建档案
 **/

public class NewArchivesDialog {
    private Dialog mDialog;
    /**
     * 身份证号
     **/
    private EditText exam_login_idcard_et;
    /**
     * 姓名
     **/
    private EditText exam_name_et;
    /**
     * 手机号
     **/
    private EditText exam_phone;
    /**
     * 家庭住址
     **/
    private EditText exam_address;
    private Button btn_finish_new;
    private Button btn_close;
    private RadioButton mailRadio;
    private RadioButton famailRadio;

    public NewArchivesDialog(Context context) {
        this.mDialog = new Dialog(context, R.style.dialog);
        LayoutInflater inflater = LayoutInflater.from(context);
        View view = inflater.inflate(R.layout.dialog_new_rechives, null);

        mailRadio = (RadioButton) view.findViewById(R.id.exam_mail);
        famailRadio = (RadioButton) view.findViewById(R.id.exam_famail);
        exam_login_idcard_et = ((EditText) view.findViewById(R.id.exam_login_idcard_et));
        exam_name_et = (EditText) view.findViewById(R.id.exam_name_et);
        exam_phone = (EditText) view.findViewById(R.id.exam_phone);
        exam_address = (EditText) view.findViewById(R.id.exam_address);
        btn_finish_new = (Button) view.findViewById(R.id.btn_finish_new);
        btn_close = (Button) view.findViewById(R.id.btn_close);
        btn_finish_new.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {

            }
        });
        btn_close.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mDialog.dismiss();
            }
        });
        this.mDialog.setCancelable(false);
        this.mDialog.setContentView(view);
    }

    public void setView(View v) {
//		this.mContent.removeAllViews();
//		this.mContent.addView(v);
    }

    public void show() {
        this.mDialog.show();
    }

    public void cancel() {
        this.mDialog.cancel();
    }

}

